﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace SCMS.Reports.Utilities
{
    public class ReportSession
    {
        /// <summary>
        /// Holds global property that can be accessed in the whole application
        /// </summary>
        private ReportSession() { }

        /// <summary>
        /// Gets the current session.
        /// </summary>
        public static ReportSession CurrentSession
        {
            get
            {
                ReportSession session = (ReportSession)HttpContext.Current.Session["__ReportSession__"];
                if (session == null)
                {
                    session = new ReportSession();
                    HttpContext.Current.Session["__ReportSession__"] = session;
                }
                return session;
            }
        }
        /// <summary>
        /// stores the login in country program
        /// </summary>
        public Model.CountryProgramme CountryProg { get; set; }
        /// <summary>
        /// Stores the Master budget currency
        /// </summary>
        public Model.Currency mbCurrency { get; set; }
    }
}
